/*
 * bsp_can.h
 *
 *  Created on: Jun 29, 2025
 *      Author: zs
 */

#ifndef INC_BSP_CAN_H_
#define INC_BSP_CAN_H_

#include "main.h"

extern uint8_t TxData[8];
extern uint32_t TxMailbox;
extern CAN_TxHeaderTypeDef Tx2Header;
extern uint8_t Tx2Data[8];
extern uint32_t Tx2Mailbox;


void BSP_CAN1_Config(void);
void BSP_CAN1_Transimt_Test(void);
void BSP_CAN1_Transmit(uint32_t ExtId,uint8_t TransimitData[]);

void BSP_CAN2_Config(void);
void BSP_CAN2_TxTest(void);
void BSP_CAN2_Tx(uint32_t ExtId,uint8_t TransimitData[]);

#endif /* INC_BSP_CAN_H_ */
